<script id="list-tpl" type="text/html"
        data-params='{"url":"/education/admin/dict","dataName":"dictData","pageid":"#page", "method":"post", "data":""}'>
    <table id="example" class="layui-table lay-even" data-name="dictData" data-tplid="list-tpl">
        <thead>
            <tr>
                <th width="30"><input type="checkbox" id="checkall" data-name="checkbox" lay-filter="check"
                                      lay-skin="primary"></th>
                <!--<th>类别</th>-->
                <th>编号</th>
                <th>名称</th>
                <th>值</th>
                <!--<th>其他</th>-->
                <th width="100">排序</th>
                <th width="150">状态</th>
                <!--<th width="200">操作</th>-->
            </tr>
        </thead>
        <tbody>
            {{# layui.each(d.list, function(index, item){ }}
            <tr>
                <td><input type="checkbox" name="checkbox" value="{{ item.id}}" lay-skin="primary"></td>
               <!-- <td>{{# if(String(item.numbers).indexOf('news-type') > 0){ }} 新闻类别
                    {{#  } else if(String(item.numbers).indexOf('question-type') > 0){  }} 咨询类别{{#  } }}</td>-->
                <td>{{ item.code }}</td>
                <td class="edit" data-list='{"key":"id={{ item.id}}","filed":"name","render":"true"}'
                    data-params='{"url":"/education/admin/dict/update/{{ item.id}}" }'>
                    {{ item.name|| ''}}
                </td>
                <td class="edit" data-list='{"key":"id={{ item.id}}","filed":"value","render":"true"}'
                    data-params='{"url":"/education/admin/dict/update/{{ item.id}}" }'>
                    {{ item.value|| ''}}
                </td>
                <!--<td class="edit" data-list='{"key":"id={{ item.id}}","filed":"ext","render":"true"}'
                    data-params='{"url":"/education/admin/dict/update/{{ item.id}}" }'>
                    {{ item.ext|| ''}}
                </td>-->
                <td class="edit" data-list='{"key":"id={{ item.id}}","filed":"ord","render":"true"}'
                    data-params='{"url":"/education/admin/dict/update/{{ item.id}}"}'>
                    {{ item.ord||''}}
                </td>
                <td><input type="checkbox" name="status" lay-skin="switch" lay-text="启用|禁用" {{#if (item.status =='1'){
                    }}checked="checked" {{# } }} lay-filter="ajax" value="1"
                    data-params='{"url":"/education/admin/dict/update","data":"id={{ item.id}}"}'/>
                </td>
            </tr>
            {{# }); }}
        </tbody>

    </table>
</script>